﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using JSON;

namespace Facebook_Graph_Toolkit.FacebookObjects {
    /// <summary>
    /// Represents a place
    /// </summary>
    public class Place{
        JsonObject data;
        internal Place(JsonObject JO) { data = JO; }
        /// <summary>
        /// Name of this place
        /// </summary>
        public string Name {
            get {
                return data["name"].ToString();
            }
        }
        /// <summary>
        /// ID of this place
        /// </summary>
        public string ID {
            get {
                return data["id"].ToString();
            }
        }
        /// <summary>
        /// Location of this place
        /// </summary>
        public Location LocationData { get { return new Location((JsonObject)data["location"]); } }
    }
}
